<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/8/23
  Time: 22:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>File list</title>
</head>
<body>
<h4>下载资源</h4>
<c:forEach items="${requestScope.files}" var="file">
    <table>
        <tr>
            <td>File name:</td>
            <td>${file.fileName}</td>
        </tr>
        <tr>
            <td>Desc:</td>
            <td>${file.fileDesc}</td>
        </tr>
        <tr>
            <td colspan="2">
                <a href="${pageContext.request.contextPath}/upload/up?method=download&id=${file.id}">download</a>
            </td>
        </tr>
    </table>
    <hr/>
</c:forEach>
<br/><br/>
<a href="${pageContext.request.contextPath}/fileupload/index.jsp">Return...</a>
</body>
</html>
